<template>
  <div id="app">
    <hello-world></hello-world>
    <home-swiper></home-swiper>
     <home-icons></home-icons>
     <home-recommend></home-recommend>
     <home-weekend></home-weekend>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld'
import HomeSwiper from './components/Swiper'
import HomeIcons from './components/Icons'
import HomeRecommend from "./components/Recommend"
import HomeWeekend from './components/Weekend'
import axios from 'axois'
export default{
  name: 'App',
  components:{
    HelloWorld,
    HomeSwiper,
    HomeIcons,
    HomeRecommend,
    HomeWeekend
  },
   methods:{
      getHomeInfo(){
        axios.get('/api/index.json')
          .then(this.getHomeInfoSucc)

      },
    getHomeInfoSucc(){
      console.log(res)

       }
   },
  mounted (){
     this.getHomeInfo()
  }
}
</script>

<style>

</style>
